package com.management.config;

import com.management.utils.ObjectRedisTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

@Configuration
public class Redisconfig {

    @Bean
    public ObjectRedisTemplate objectRedisTemplate(RedisConnectionFactory redisConnectionFactory){
        return new ObjectRedisTemplate(redisConnectionFactory);
    }
}
